<!-- /*
* @Author: mikey.zhaopeng
* @Date: 2020-07-09 11:03:07
* @Last Modified by: mikey.zhaopeng
* @Last Modified time: 2020-07-09 11:03:07
*/ -->


<?php
// header("content-type:text/html,charset=utf8");
$a = mysql_connect("localhost", "root", "root");
mysql_select_db("user",$a);
mysql_query("set names utf8");
$b=mysql_query("delete from va where id = '6'");
// $c=mysql_fetch_assoc($b);
$arr=array();
$b1=mysql_query('select * from `va`');

while($row=mysql_fetch_assoc($b1)){
    array_push($arr,$row);
}



$arr1=array();


while($row=mysql_fetch_assoc($b1)){
    array_push($arr1,$row);
}
$b2=mysql_query("UPDATE `va` SET name='张三' WHERE `id`=1");
echo json_encode($arr);
echo json_encode($arr1);
mysql_close($a);
?>